package com.zjw.video.common.entity.enums;


public enum RespCodeEnum {

    SUCCESS(200, "成功。"),
    PARAM_ERROR(400, "参数验证失败。"),
    UNKNOWN_ERROR(401, "系统错误。"),
    WECHAT_ERROR(402, "微信接口异常。"),
    AUTH_ERROR(403, "认证异常。"),
    OPENAI_NO_ACCOUNT(404, "openai无可用账号。"),
    NO_VIP(405, "体验权益已使用完，开通会员或充值象点继续使用吧"),
    WECHAT_SIGN_ERR(406, "微信签名异常！"),
    NOT_FOUND_USER(407, "用户找不到！"),
    USER_DISABLE(408, "用户被禁用！"),
    MESSAGE_TEMPLATE(409, "模板消息参数校验失败！"),
    BAIDU_ERROR(410, "百度接口调用异常！"),
    DB_ERROR(412, "数据异常");

    private Integer code;
    private String msg;

    RespCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}